babl: refactor code to get rid of more branches in babl_process
authorØyvind Kolås <pippin@gimp.org>
Sun, 14 Jan 2018 21:49:40 +0000 (22:49 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 14 Jan 2018 22:30:11 +0000 (23:30 +0100)
commit9debb9d7f68afb5b9028343e3b33cbf4aa7edc6c
tree012223465396bab58c82c880643244e440f01c7d
parentc159b6314e11984ee390a6c793070868cb304c36
babl: refactor code to get rid of more branches in babl_process

In the best case scenario now, babl_process increments instrumentation
counters and directly calls the relevant registered fast path function,
with no additional call stack frames in-between.
babl/babl-fish-path.c
babl/babl-fish-reference.c
babl/babl-fish-simple.c
babl/babl-fish.c
babl/babl-fish.h
babl/babl-internal.h